//
//  ViewController.m
//  多线程
//
//  Created by mac on 15-4-2.
//  Copyright (c) 2015年 mac. All rights reserved.
//

#import "ViewController.h"
#import <pthread.h>
@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
}


- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
    NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(demo) object:nil];
    [thread start];
    NSLog(@"====");
}

- (void)demo
{
    NSLog(@"--%@", [NSThread currentThread]);
}

@end
